﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TinyTeam.UI;

public class SetUI : TTUIPage
{
    public SetUI() : base(UIType.Normal, UIMode.HideOther, UICollider.Normal)
    {
        uiPath = "UI/SetUI";
    }
    public override void Awake(GameObject go)
    {
        go.transform.Find("bg1").GetComponent<Image>();
        go.transform.Find("bg2").GetComponent<Image>();
        go.transform.Find("bg2/bg3").GetComponent<Image>();
        go.transform.Find("bg2/BackButton").GetComponent<Button>().onClick.AddListener(Back);
        go.transform.Find("BGSoundText").GetComponent<Text>();
        go.transform.Find("BGSoundSlider").GetComponent<Slider>();
        go.transform.Find("SoundEffectText").GetComponent<Text>();
        go.transform.Find("SoundEffectSlider").GetComponent<Slider>();
        go.transform.Find("HoldButton").GetComponent<Button>();
    }
    public void Back()
    {
        ShowPage<LoginUI>();
    }
}
